<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class="definewidth m10">
	<form id="searchForm" action="/sys_admin/cps/kefuuserlist/" method="get" class="form-inline definewidth m20">
	选择客服：
		<select name='kefuselect'>
			<?php if($kefulist){foreach ($kefulist as $kfv){?>
			<option style="width:200px" value="<?php echo $kfv['id']; ?>"><?php echo $kfv['kf_name']; ?></option>
			<?php }} ?>
		</select>  
		<input type="hidden" name='kf_id' value='<?php echo $kf_id?>'>
		<input type="submit" class="btn btn-primary" value='查询'>
	</form>
	<div>
		 
	</div>
	<div>
		<table class="table table-bordered table-hover definewidth m10">
		<thead>
		<tr>
			<th><strong>客服名称</strong></th>
			<th><strong>客服头像</strong></th>
			<th><strong>投资人个数</strong></th>
			<th><strong>被点击总次数</strong></th>
			<th><strong>使用状态</strong></th>
			<th><strong>操作</strong></th>					
		</tr>
		</thead>
		<tr> 
			<td><?php echo $kf_name;?></td>
			<td><img src="<?php echo $kf_img;?>"></td>
			<td><?php echo $kf_name_num;?></td>
			<td><?php echo $kf_click;?></td>	
			<td><?php if($kf_use==1){echo '正常使用';}else{echo '停止使用';}?></td>
			<td>暂无</td>							
		</tr>
	</div>
</div>
<style>
	.kefuuserlist{
		padding:10px 0 0 0; 
	}
</style>

<div id="kefuuserlist" class='kefuuserlist'>
	<table class="table table-bordered table-hover definewidth m10">
		<thead>
		<tr>
			<th><strong>序号</strong></th>
			<th><strong>投资人</strong></th>
			<th><strong>投资人真实名</strong></th>
			<th><strong>专属客服</strong></th>
			<th><strong>点击次数</strong></th>
			<th><strong>添加时间</strong></th>					
		</tr>
		</thead>
		<?php if($userlist){foreach ($userlist as $v){?>
		<tr>
			<td><?php echo $v['user_id'];?></td> 
			<td><?php echo $v['username'];?></td>
			<td><?php echo $v['realname'];?></td>
			<td><?php echo $v['kf_name'];?></td>
			<td><?php echo $v['click_num'];?></td>					
			<td><?php echo date('Y-m-d H:i:s',$v['addtime_kf']);?></td>				
		</tr>
		<?php }}else{?>
		<tr>
		</tr>
		<?php }?>
	</table>
</div>
